<?php
class settings_1 extends Update_Model_Database_AbstractChange{

	protected $comment="Создание таблицы settings";

	public function up(){
		$sql='CREATE TABLE IF NOT EXISTS settings(
				  id INT(11) NOT NULL AUTO_INCREMENT,
				  module TEXT NOT NULL,
				  namespace TEXT NOT NULL,
				  params TEXT DEFAULT NULL,
				  PRIMARY KEY (id)
			)
				ENGINE = INNODB
				CHARACTER SET utf8
				COLLATE utf8_general_ci;';
		$this->db->query($sql);
	}

	public function down(){
		$sql='DROP TABLE IF EXISTS settings ;';
		$this->db->query($sql);
	}

}